.profile-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 2rem;
  background-color: #f5f5f5;
}

.profile-box {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-box h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.avatar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #4a90e2;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-group label {
  color: #666;
  font-size: 0.9rem;
}

.info-group p {
  margin: 0;
  color: #333;
  font-size: 1.1rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.button-group button {
  flex: 1;
  padding: 0.75rem;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.button-group button:hover {
  background-color: #357abd;
}

.button-group button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #666;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.error-message {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-size: 1.2rem;
  color: #666;
}

.error {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-size: 1.2rem;
  color: #dc3545;
}

.content-loading,
.content-error {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  color: #666;
  font-size: 1.1rem;
}

.content-error {
  color: #dc3545;
}

.profile-content {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 25px;
  position: relative;
  margin-bottom: 30px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* 头部样式 */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.content-title {
  margin: 0;
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
}

/* 头像右上角 */
.avatar-container-corner {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.user-avatar1 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffd600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 用户信息容器 */
.profile-info-container {
  position: relative;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
  
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 15px;
  margin-bottom: 60px; /* 为底部编辑按钮留出空间 */
}

.info-row {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.info-row label {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 4px;
}

.info-row p {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

/* 编辑按钮右下角 */
.edit-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.edit-btn {
  background-color: #ffd600;
  color: #222;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.edit-btn:hover {
  background-color: #ffe066;
}

/* 表单样式 */
.profile-form-container {
  max-width: 500px;
  margin: 20px auto;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: #666;
}

.form-group input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #ffd600;
  box-shadow: 0 0 0 2px rgba(255, 214, 0, 0.1);
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.primary-btn,
.cancel-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-btn {
  background-color: #ffd600;
  color: #222;
}

.primary-btn:hover {
  background-color: #ffe066;
}

.primary-btn:disabled {
  background-color: #eee;
  color: #999;
  cursor: not-allowed;
}

.cancel-btn {
  background-color: #f5f5f5;
  color: #666;
}

.cancel-btn:hover {
  background-color: #eee;
  color: #444;
}

.error-message {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .profile-content {
    padding: 20px 15px;
  }
  
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .avatar-container-corner {
    align-self: center;
    width: 140px;
    height: 140px;
    margin-bottom: 10px;
  }
  
  .profile-form-container {
    max-width: 100%;
  }
} 